package com.android.huimeiqupin.model.group;

import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * Created by Administrator on 2017/8/17.
 */

public abstract class MainGoodsCatDataCallback extends Callback<MainGoodsCatData> {

    @Override
    public MainGoodsCatData parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        MainGoodsCatData data = new Gson().fromJson(string,MainGoodsCatData.class);
        return data;
    }
}
